package cn.x.kindergarten.util;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.UUID;

public class Tools {
	public static String genID(){
		DateFormat df = new SimpleDateFormat("yyMMdd");
		String p1 = df.format(new Date());
		String p2 = UUID.randomUUID().toString().substring(0, 4);
		return p1+p2;
	}
}
